﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace library
{
    public partial class Main : Form
    {
        public string adminId = "";
        public string adminName = "";
        public Main()
        {
            InitializeComponent();
        }

        private void cancel_Click(object sender, EventArgs e)
        {
            this.Hide();
            Login frm = new Login();
            frm.Show();
        }

        private void readerInfo_Click(object sender, EventArgs e)
        {
            this.Hide();
            readerInfo frm = new readerInfo();
            frm.Show();
        }

        private void bookBorInfo_Click(object sender, EventArgs e)
        {
            this.Hide();
            borrowInfo frm = new borrowInfo();
            frm.adminId = adminId;
            frm.adminName = adminName;
            frm.Show();
        }

        private void bookInfo_Click(object sender, EventArgs e)
        {
            this.Hide();
            bookInfo frm = new bookInfo();
            frm.Show();
        }

        private void bookColInfo_Click(object sender, EventArgs e)
        {
            this.Hide();
            bookColInfo frm = new bookColInfo();
            frm.Show();
        }

        private void pubInfo_Click(object sender, EventArgs e)
        {
            this.Hide();
            pubInfo frm = new pubInfo();
            frm.Show();
        }

        private void bookrepayInfo_Click(object sender, EventArgs e)
        {
            this.Hide();
            repayInfo frm = new repayInfo();
            frm.adminId = adminId;
            frm.adminName = adminName;
            frm.Show();
        }

        private void penaltyInfo_Click(object sender, EventArgs e)
        {
            this.Hide();
            pentyInfo frm = new pentyInfo();
            frm.adminId = adminId;
            frm.adminName = adminName;
            frm.Show();
        }

        private void Main_Load(object sender, EventArgs e)
        {

        }

        private void miss_btn_Click(object sender, EventArgs e)
        {
            this.Hide();
            missbook frm = new missbook();
            frm.adminId = adminId;
            frm.adminName = adminName;
            frm.Show();
        }
    }
}
